define(function(){
    return function(goodsMsg){
       return goodsMsg.reduce((start,val)=>val.flag?start+=val.num:start,0)
    }
})